<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="./javascript.js"></script> -->
</head>
<body>
    <!-- <div onclick='clickEvent(1,2);'>点击</div> -->
</body>
<script>
    // let clickEvent = deBounce(handle);
    // let clickEvent = throttle(handle);
    // function handle(a,b){
    //     console.log('---执行---',a,b);
    // }
    // let event = new EventZZ();
    // event.addListener('click',()=>{
    //     console.log('---点击----');
    // })
    // function clickEvent(){
    //     event.emit('click')
    // }

    window.number = 2;
    var obj = {
     'number': 3,
     'db1': (function(){
          console.log(this);
          this.number *= 4;
          return function(){

           console.log(this);
           this.number *= 5;

          }
     })()
    }
    var db1 = obj.db1;//8
    db1(); //40
    obj.db1();//15
    console.log(obj.number)

</script>
</html>